package com.groupbuying.currency.consumer.service.impl;

import com.groupbuying.currency.consumer.dao.CurrencyActivityDao;
import com.groupbuying.currency.consumer.domain.CurrencyActivityDO;
import com.groupbuying.currency.consumer.service.CurrencyActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CurrencyActivityServiceImpl implements CurrencyActivityService {
	@Autowired
	private CurrencyActivityDao currencyActivityDao;
	
	@Override
	public CurrencyActivityDO get(String activityId){
		return currencyActivityDao.get(activityId);
	}
	
	@Override
	public List<CurrencyActivityDO> list(Map<String, Object> map){
		return currencyActivityDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return currencyActivityDao.count(map);
	}
	
	@Override
	public int save(CurrencyActivityDO currencyActivity){
		return currencyActivityDao.save(currencyActivity);
	}
	
	@Override
	public int update(CurrencyActivityDO currencyActivity){
		return currencyActivityDao.update(currencyActivity);
	}
	
	@Override
	public int remove(String activityId){
		return currencyActivityDao.remove(activityId);
	}
	
	@Override
	public int batchRemove(String[] activityIds){
		return currencyActivityDao.batchRemove(activityIds);
	}
	
}
